1. Create application (project) on the developers console. <-- top right of the developers console (this is also where you pick your project)

https://console.developers.google.com/home/dashboard

2. Goto the Permissions section on the left side flyout.
You can then create a service account (for server to server interaction)
Select furnish a new private key and select P12
(Enable Google Apps Domain-wide Delegation)
Need product name for the consent screen

ensure that you get the P12 file copied to your machine

2. Get the email from the Permissions section on the left side flyout.

3. You can then put the P12 file into the VS project dir
4. Use the email for the other part of the auth section.

Go to you app admin section and change the ability for you to give major access to your service email

Apps > Google Apps > Settings for Calendar > Sharing Settings
Then put the email from the permissions in the dashboard in the sharing section of the settings on the calendar

At that point you should be able to actually able to run your code.


To set up service account auth

Google are fucking morons !!!!!!!!!!!!!!

Apps > Google Apps >Settings for Calendar >Advanced settings
https://admin.google.com/lilypointparklodge.com/AdminHome?chromeless=1#ServiceSettings/notab=1&service=calendar&subtab=org

https://admin.google.com/lilypointparklodge.com/AdminHome?fral=1#AppDetails:service=Calendar&flyout=general

https://developers.google.com/identity/protocols/OAuth2ServiceAccount




Set the sharing and then wait a couple of hours.

https://admin.google.com/lilypointparklodge.com/AdminHome#AppDetails:service=Calendar&flyout=sharing